import axios from '@/libs/api.request'
//订单列表
export const apiOrderinfoList= data => {
    return axios.request({
      url: '/orderinfo/list',
      method: 'post',
      data
    })
  }
//订单详情
export const apiOrderinfoInfo= data => {
    return axios.request({
      url: `/orderinfo/info`,
      method: 'post',
      data
    })
  }
//发货
export const apiOrderinfoSendOut= data => {
    return axios.request({
      url: '/orderinfo/send-out',
      method: 'post',
      data
    })
  }

  //快递配送信息
export const apiDeliveryInfo=data => {
  return axios.request({
    url: '/express/delivery-info',
    method: 'post',
    data
  })
}

//打单详情
export const apiOrderinfoInfoList= data => {
  return axios.request({
    url: `/orderinfo/info-list`,
    method: 'post',
    data
  })
}
//打单设置
export const apiPrintOrderConf= data => {
  return axios.request({
    url: `/orderinfo/print-order-conf`,
    method: 'get',
    data
  })
}

//订单待处理数量
export const apiPrintOrderOperNum= data => {
  return axios.request({
    url: `/orderinfo/oper-num`,
    method: 'post',
    data
  })
}
//订单退款
export const apiPrinrtOrderrefund= data => {
  return axios.request({
    url: `/orderinfo/refund`,
    method: 'post',
    data
  })
}
